package com.jd.dao;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.HashMap;

import com.jd.entity.RealnameEntity;
import com.jd.entity.UserEntity;

public interface UserDao {

	HashMap<String, Object> getUserRole(HashMap<String, Object> map);

	boolean inRealName(RealnameEntity realnameEntity);

	RealnameEntity getRealName(String userId);

	HashMap<String, Object> getUser(String userId);

	Boolean updateBalance(HashMap<String, Object> hashMap);

	Boolean updateZFB(HashMap<String, Object> zFBMap);

	ArrayList<HashMap<String, Object>> getOnUserList(String userId);

	Boolean updateMBalance(HashMap<String, Object> hashMap);

	Boolean extension(UserEntity user);

	UserEntity userByOpenId(String openId);

	Boolean updateUserLogo(UserEntity user);

	Boolean insertUser(UserEntity userEntity);

	Integer countOnUser(String onUserId);

	Boolean updateRank(HashMap<String, String> hashMap);

	UserEntity getUserByPhone(String phone);

	Integer updateOpenId(HashMap<String, String> phoneMap);

	String selectOnUserId(String id);

	Boolean updateTBalance(HashMap<String, Object> balanceMap);

	HashMap<String, Object> getUserCode(String id);

	Boolean updateTotalBalance(BigDecimal bfb, String userId);
}
